package com.zhizihua.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhizihua.content.model.dto.CourseCategoryTreeDto;
import com.zhizihua.content.model.po.CourseCategory;

import java.util.List;

/**
 * <p>
 * 课程分类 Mapper 接口
 * </p>
 *
 * @author zhizihua
 * @since 2025-05-02
 */
public interface CourseCategoryMapper extends BaseMapper<CourseCategory> {

    /**
     * 根据父节点查询相关子节点 查询树形表
     * @param id 父节点 id
     * @return
     */
    public List<CourseCategoryTreeDto> selectTreeNodes(String id);
}
